/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-06 09:35:28
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-06 10:03:14
 * @FilePath: \盐师22Git仓库\day09\AutomobileTest.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day09;

public class AutomobileTest {
    public static void main(String[] args) {
        //创建Truck类对象
        Truck t1 = new Truck("北汽","苏E123456","大型");
        t1.show();
        System.out.println("租金是：" + t1.getRent(5));
        System.out.println(t1.toString());
        //创建Bus类对象
        Bus b1 = new Bus("北通","苏H546874",54);
        b1.show();
        System.out.println("租金是：" + b1.getRent(4));

    }
}
